<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#name").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules : {
				customer : "required",
				department : "required",
				memo : "required"
			}
		});
	});
</script>
<form:form id="inputForm" class="well form-inline" action="${ctx}/adoms/customerInterview/save" modelAttribute="customerInterview" method="POST">
	<table class="table table-striped table-bordered table-condensed">
		<form:hidden path="id"/>
		<thead>
			<i class="icon-flag"></i>
			<strong>客户回访信息表单</strong>
		</thead>
		<tr>
			<td class="span2">受访部门:</td>
			<td>
				<form:select path="customer.id">					
					<form:options items="${customers}" itemLabel="name" itemValue="id" size="30" maxlength="80" />
				</form:select>
			</td>
		</tr>
		<tr>
			<td>采访部门:</td>
			<td>
				<form:select path="department.id">					
					<form:options items="${departments}" itemLabel="name" itemValue="id" size="30" maxlength="80" />
				</form:select>
			</td>
		</tr>
		<tr>
			<td>备注:</td>
			<td><form:textarea path="memo" rows="4" class="span6" /></td>
		</tr>
		<tr>
			<td colspan="2">
				<input class="btn" type="submit" value="提交" />
				&nbsp;
				<input class="btn" type="button" value="返回" back="back" />
			</td>
		</tr>
	</table>
</form:form>
